package com.jiaai.member.api;

import com.jiaai.exception.ServerException;
import com.jiaai.member.model.VMember;
import com.sun.javafx.collections.MappingChange;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author 佳爱网络科技
 * @version V1.0
 * @title IFollowAPI
 * @since 2017/11/13
 */
public interface IFollowAPI {
     //加载我的关注会员
     List<Map> findMyFollowMember(String mId, Integer curr)throws ServerException;

    public List<Map<String,Object>> findByAll(String mId)throws ServerException;

    public List<Map> findFansByMId(String mId, Integer curr)throws ServerException;

    /**
     * 关注或取消关注
     * @param flag 1:关注 0:取消关注
     * @throws ServerException
     */
    public void followOrUnfollow(String form,String to, Integer flag)throws  ServerException;

    /**
     * 取消关注
     * @param form  关注人
     * @param to   关注对象
     */
    public void cancelFollow(String form,String to)throws  ServerException;

    /**
     * 查询用户的关注
     * @param mId
     */
    public void queryUserFollow(String mId);

    /**
     * 查询用户的粉丝
     * @param mId
     */
    public void  queryUserFans(String mId);
}
